<!DOCTYPE html PUBLIC 
    "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
<html 
	xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk"> 


	<ui:composition template="t_loggedin.xhtml">

	<ui:define name="menu">
		<h:form>
			<table class="leftmenu">
				<tbody>
					<!-- default menu item, place in all pages -->
					<tr class="leftmenuheader">
						<th colspan="2"><h:outputText value="#{msgs['menu.heading.userinfo']}" /></th>
					</tr>
					<tr class="leftmenu">
						<th><h:outputText value="#{msgs['menu.loggedinas']}" /></th>
						<td class="leftmenu"><h:outputText value="#{userMgtBean.user}"/></td>
					</tr>				
					
					<!-- Status menu item -->					
					<tr class="leftmenuheader">
						<th colspan="2"><h:outputText value="#{msgs['menu.heading.status']}" /></th>
					</tr>
					<!-- Broker status -->
					<tr class="leftmenu">
						<th><h:outputText value="#{msgs['home.menu.mq']}" /></th>
						<td>
							<h:graphicImage value="images/button-close.png" rendered="#{!brokerBean.started}"/>
							<h:graphicImage value="images/button-max.png" rendered="#{brokerBean.started}"/>
						</td>
					</tr>
					<!-- Router status -->
					<tr class="leftmenu">
						<th><h:outputText value="#{msgs['home.menu.router']}" /></th>
						<td>
							<h:graphicImage value="images/button-close.png" rendered="#{!routerBean.started}"/>
							<h:graphicImage value="images/button-max.png" rendered="#{routerBean.started}"/>
						</td>
					</tr>
					<!-- ESB status -->
					<tr class="leftmenu">
						<th><h:outputText value="#{msgs['home.menu.esb']}" /></th>
						<td>
							<h:graphicImage value="images/button-close.png" rendered="#{!esbBean.started}"/>
							<h:graphicImage value="images/button-max.png" rendered="#{esbBean.started}"/>
						</td>
					</tr>

					<!-- Broker info -->
					<tr class="leftmenuheader">
						<th colspan="2"><h:outputText value="#{msgs['menu.heading.broker']}" /></th>
					</tr>		
					<tr class="leftmenu">
						<th><h:outputText value="#{msgs['home.menu.queues']}" /></th>
						<td class="leftmenu"><h:outputText value="#{brokerBean.queues}"/></td>
					</tr>
					<tr class="leftmenu">
						<th><h:outputText value="#{msgs['home.menu.topics']}" /></th>
						<td class="leftmenu"><h:outputText value="#{brokerBean.topics}"/></td>
					</tr>
					<!-- ESB info -->
					<tr class="leftmenuheader">
						<th colspan="2"><h:outputText value="#{msgs['menu.heading.esb']}" /></th>
					</tr>		
					<tr class="leftmenu">
						<th><h:outputText value="#{msgs['home.menu.flows']}" /></th>
						<td class="leftmenu"><h:outputText value="#{esbBean.flows}"/></td>
					</tr>
					
					
					<!-- 'Actions' menu items -->
					<tr class="leftmenuheader">
						<th colspan="2">
							<h:outputText value="#{msgs['menu.heading.actions']}" />
						</th>
					</tr>
					<!-- Manage Broker item -->
					<tr class="leftmenu">						
						<td colspan="2">
							<h:outputLink value="broker.jsf"><h:outputText value="#{msgs['home.menu.action.mq']}" /></h:outputLink>
						</td>
					</tr>
					<!-- Manage Router item -->
					<tr class="leftmenu">						
						<td colspan="2">
							<h:outputLink value="router.jsf"><h:outputText value="#{msgs['home.menu.action.router']}" /></h:outputLink>
						</td>
					</tr>
					<!-- Manage ESB item -->
					<tr class="leftmenu">
						<td colspan="2">
							<h:outputLink value="esb.jsf"><h:outputText value="#{msgs['home.menu.action.esb']}" /></h:outputLink>
						</td>
					</tr>
					<!-- Configuration -->
					<tr class="leftmenu">						
						<td colspan="2">
							<h:outputLink value="config.jsf"><h:outputText value="#{msgs['home.menu.action.config']}" /></h:outputLink>
						</td>
					</tr>
					
				</tbody>
			</table>
		</h:form>
	</ui:define>

	<ui:define name="body">
		<table class="results">
			<thead>
				<tr>
					<th><h:outputText value="#{msgs['home.content.title']}" /></th>
				</tr>
				<tr>
					<td><h:outputText value="#{msgs['home.content.subtitle']}" /></td>
				</tr>
			</thead>
			<tbody class="results">
				<tr class="odd"><td><h:outputText value="#{msgs['home.content.content.l1']}" /></td></tr>
				<tr class="odd"><td><h:outputText value="#{msgs['home.content.content.l2']}" /></td></tr>
				<tr class="odd"><td><br/></td></tr>
				<tr class="odd"><td><h:outputText value="#{msgs['home.content.content.l3']}" /></td></tr>
				<tr class="odd"><td><h:outputText value="#{msgs['home.content.content.l4']}" /></td></tr>
				<tr class="odd"><td><h:outputText value="#{msgs['home.content.content.l5']}" /></td></tr>
			</tbody>
		</table>
	</ui:define>

</ui:composition>

</html>